<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
function xiafa(){
var id=document.getElementById("couponId").value
var userId = document.getElementById("userId").value;
var userName= "";

if(userId==""){
if(!window.confirm("确认下发所给有会员吗？")){
return;
}
}
window.location.href="o_xfCoupon.do?id="+id+"&userId="+userId;
};
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "Coupon.basicInfo"/> - 下发</div>
	<form class="ropt" action="v_listCoupon.do">
	<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_updateCoupon.do" labelWidth="12">
<@p.hidden id="couponId" name="id" value=coupon.id/>
<@p.text colspan="1" width="50" label="优惠券名称" name="couponName" value=coupon.couponName value=coupon.couponName  required="true" class="required" maxlength="100"/>
<@p.select colspan="1" label="请指定用户" id="userId" name="userId"  list=listUser listKey="id" listValue="name" class="required" required="true" headerValue="所有会员"/><@p.tr/>


<@p.td colspan="2">
	<input type="button" value="下发" onclick="javascript:xiafa();"/>
</@p.td>
</@p.form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>